package com.team.service;

import com.github.pagehelper.PageInfo;
import com.team.pojo.AppInfo;
import com.team.pojo.AppInfoCondition;
import com.team.pojo.AppVersion;

public interface AppInfoService {
 /**
  * 条件查询并分页
  * @param appInfoCondition
  * @return
  */
 public PageInfo<AppInfo> getAppInfoCondition(AppInfoCondition appInfoCondition);

//添加APP信息
 public int addAppInfo(AppInfo appInfo);

 //查询
 public AppInfo getAppInfo(Long id);

 //修改app
 public int updateAppInfo(AppInfo appInfo);

//删除app信息同时删除版本信息
 public void deleteAppInfo(Long appId);

 /**
  * 审核未通过的app信息
  * @param appInfoCondition
  * @return
  */
 public PageInfo<AppInfo> getNoPassAppInfo(AppInfoCondition appInfoCondition);

 //后台查询单条待审核的app详情
 public AppInfo getCheckAppInfo(Long id);

 /**
  * 修改App状态
  * @param appid
  * @param status
  * @return
  */
 public int updateStatus(Long appid,Long status);
}
